package com.zim.ta_service.base.model.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * author: alabimofa <br>
 * date: 2021/10/22 18:41 <br>
 */
@ApiModel("分页查询请求参数")
@Data
public class PageReq {

	@ApiModelProperty(value = "当前页(从1开始)", required = true)
	@NotNull(message = "当前页不能为空")
	@Min(value = 1, message = "当前页必须大于1")
	protected long current;

	@ApiModelProperty(value = "每页显示条数", required = true)
	@NotNull(message = "页数不能为空")
	@Min(value = 1, message = "页数必须大于1")
	protected long size;
}
